package cn.tedu.api;
//测试 泛型的通用性
public class Test2_Generics2 {
    public static void main(String[] args) {
        Integer[] a = {1,2,3,4,5};
        print(a);

        Double[] b = {1.1,2.2,3.3,4.4,5.5};
        print(b);

        String[] c = {"11","22","33"};
        print(c);
    }

    public static <T> void print(T[] a) {
        for (T d:a) {
            System.out.println(d);
        }
    }
}
